$(function(){
		var staname = $('#staname').val(); 
		var str='';  
		///alert(staname);
		$.ajax({
			type: "GET",
			url: "http://bd.kuwo.cn/mpage/api/artistSongs?pn=0&rn=5&bdfrom=fensi",
			data: {'name':staname,'sortby':1},
			datatype:'json',
			success: function(json){
				var obj=eval('('+json+')');     //获取json中的个数  
				 
				for(var i=0;i<obj.musiclist.length;i++){  
					var str='';  
						 str +="<div class='music'>"+
							"<div class='music_tit clearfix'>"+
								"<span>推荐歌曲</span>"+
								"<a href='"+obj.pcArtistUrl+"' target='_blank'>热门歌曲</a>"+
							"</div>"+
							"<div class='music_menu'>"+
								"<ul>"; 
								for(var j=0;j<=i;j++){
									if(j==0){
										str +="<li class='mu_cur'><a href='"+obj.musiclist[j].pcUrl+"' target='_blank'>"+obj.musiclist[j].name+"</a></li>"; 
									}else{
										str +="<li><a href='"+obj.musiclist[j].pcUrl+"' target='_blank'>"+obj.musiclist[j].name+"</a></li>";
									}
									 
								} 
									 
								str +="</ul>"+
							"</div>"+
						"</div>";  
				} 
				$('#music').append(str);
			}
		});
		

          
})